<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-boxmodel-edit" th:object="${tbCellBoxmodel}">
            <input name="modelId" th:field="*{modelId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">箱型号名称：</label>
                <div class="col-sm-8">
                    <input name="modelName" th:field="*{modelName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">箱型号编号：</label>
                <div class="col-sm-8">
                    <input name="modelCode" th:field="*{modelCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">箱规格代码：</label>
                <div class="col-sm-8">
                    <input name="specificationsCode" th:field="*{specificationsCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池品牌：</label>
                <div class="col-sm-8">
                    <input name="cellCard" th:field="*{cellCard}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">恩度探针总数：</label>
                <div class="col-sm-8">
                    <input name="probeCount" th:field="*{probeCount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">模块串并联方式：</label>
                <div class="col-sm-8">
                    <select name="modelType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">模块个数：</label>
                <div class="col-sm-8">
                    <input name="modelCount" th:field="*{modelCount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">生产厂商名称：</label>
                <div class="col-sm-8">
                    <input name="companyName" th:field="*{companyName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池包型号性能参数：</label>
                <div class="col-sm-8">
                    <input name="powerId" th:field="*{powerId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">外形：</label>
                <div class="col-sm-8">
                    <input name="appearance" th:field="*{appearance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">尺寸：</label>
                <div class="col-sm-8">
                    <input name="size" th:field="*{size}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">容量：</label>
                <div class="col-sm-8">
                    <input name="capacity" th:field="*{capacity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电压：</label>
                <div class="col-sm-8">
                    <input name="voltage" th:field="*{voltage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">质量：</label>
                <div class="col-sm-8">
                    <input name="weight" th:field="*{weight}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">能量密度：</label>
                <div class="col-sm-8">
                    <input name="energyDensity" th:field="*{energyDensity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">功率密度：</label>
                <div class="col-sm-8">
                    <input name="powerDensity" th:field="*{powerDensity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">充电倍率：</label>
                <div class="col-sm-8">
                    <input name="chargeRate" th:field="*{chargeRate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池寿命：</label>
                <div class="col-sm-8">
                    <input name="batteryLife" th:field="*{batteryLife}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/boxmodel";
        $("#form-boxmodel-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-boxmodel-edit').serialize());
            }
        }
    </script>
</body>
</html>